#-*- codeing = utf-8 -*-
#@Time:2022/9/148:21
#@Author :计科1813-14-张玉婷
#@File:tuple.py
#@Software:PyCharm
'''
#查
tup1 = ("abc", "def", 2022, 2021, "tianjin", "changsha" )

print(tup1[0])
print(tup1[-1])    #访问最后一个元素
print(tup1[1:5])  #左闭右开，进行切片
'''
'''
#增  （链接）
tup1 = (12, 34, 56)
tup2 = ("abc", "ghj")
tup = tup1 + tup2
print(tup)
'''

#删
tup1 = (12, 34, 56)
print(tup1)
del tup1    #删除了整个元组变量
print("删除后：")
print(tup1)

#改  不能改
#tup1 = (12, 34, 56)
#tup1[0] = 100    #报错不允许修改

